
<?php if($this->_tpl->params->get('font_method') == 0) : ?>

	<script type="text/javascript" src="<?php echo $this->templateurl(); ?>/js/cufon.js"></script>

	<?php if($this->_tpl->params->get('cufon_font') != -1 ) : ?>

	<script type="text/javascript" src="<?php echo $this->templateurl(); ?>/fonts/<?php echo $this->_tpl->params->get('cufon_font'); ?>"></script>

	<?php endif; ?>
	<?php if($this->_tpl->params->get('cufon_font1') != -1 ) : ?>
	<script type="text/javascript" src="<?php echo $this->templateurl(); ?>/fonts/<?php echo $this->_tpl->params->get('cufon_font1'); ?>"></script>
	<?php endif; ?>

	
	<script type="text/javascript">
	//<![CDATA[
		if(!window.ie || (document.querySelectorAll && window.ie)){
		<?php if($this->_tpl->params->get('cufon_font','-1') != '-1' ) : ?>
		Cufon.replace('body', { fontFamily: '<?php echo $this->_tpl->params->get('cufon_fontname',''); ?>' });
		<?php endif; ?>


		<?php 
		
			$cufon_fonts = array(
	'.cbBox h3',
	'div.itemHeader h2.itemTitle',
	'div.userItemHeader h3.userItemTitle',
	'div.catItemHeader h3.catItemTitle', 
	'div.genericItemHeader h2.genericItemTitle', 
	'div.k2ItemsBlock ul li a.moduleItemTitle',
    'legend',
	'.contentheading',
	'.componentheading',
	'h2.page_title',
	'h2.latestItemTitleList',
	'div.latestItemHeader',
	'h2.latestItemTitle',
	'#container h1',
	'.rcolumn h1',
	'#nagl h3',
	'#jc h4'	
			);		
		
			if($this->_tpl->params->get('cufon_font1','-1') != '-1' ) :
		?>		
			<?php foreach($cufon_fonts as $cfont) : ?>
			Cufon.replace('<?php echo $cfont; ?>', { fontFamily: '<?php echo $this->_tpl->params->get('cufon_font1name',''); ?>' });
			<?php endforeach; ?>
		<?php endif; ?>	
		}
	//]]>	
	</script>
<?php endif; ?>



<style type="text/css">	

	body {
		font-family: <?php echo $this->fontFamily($this->_tpl->params->get('font_family',1)); ?>;
	}
	
	.cbBox h3,	
	div.itemHeader h2.itemTitle,
	div.userItemHeader h3.userItemTitle,
	div.catItemHeader h3.catItemTitle, 
	div.genericItemHeader h2.genericItemTitle, 
	div.k2ItemsBlock ul li a.moduleItemTitle,
    legend,
	.contentheading,
	.componentheading,
    h2.page_title, 
	h2.latestItemTitleList,
	div.latestItemHeader, 
	h2.latestItemTitle,
    #container h1, 
    .rcolumn h1, 
    #nagl h3,
    #jc h4 
	{
		font-family: <?php echo $this->fontFamily($this->_tpl->params->get('font_family1',1)); ?>;
	}
</style>